package com.enjoy;

import com.enjoy.entity.Config;
import com.enjoy.entity.IUserService;
import com.enjoy.spring.EnjoyApplicationContext;

public class Test {

    public static void main(String[] args) throws ClassNotFoundException {
        EnjoyApplicationContext enjoyApplicationContext = new EnjoyApplicationContext(Config.class);
        IUserService userService = (IUserService) enjoyApplicationContext.getBean("userService");
        userService.insert();
    }
}
